package com.lichongbing.lyoggl.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lichongbing.lyoggl.model.Project;
import com.lichongbing.lyoggl.service.ProjectService;
import com.lichongbing.lyoggl.mapper.ProjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project>
    implements ProjectService{
    @Autowired
    private ProjectMapper projectMapper;
    @Override
    public List<Project> findByUid(String uid) {
        return   projectMapper.findByUid(uid);
    }

    @Override
    public int deleteByUid(String id,String uid) {
        return projectMapper.deleteByUid(id,uid);
    }

    @Override
    public void updateByUid(String name, String content,String pid) {
        projectMapper.updateByUid(name,content,pid);
    }

    @Override
    public int findRowsByUid(String uid) {
        return projectMapper.findRowsByUid(uid);
    }

    @Override
    public String getProjectNamebypid(String pid) {
        return projectMapper.getProjectNamebypid(pid);
    }
}
